const {override,fixBabelImports,  addLessLoader} = require("customize-cra");
require("customize-cra");

module.exports = override(
  //针对antd实现按需打包，根据import来按需打包
  fixBabelImports("import", {
    libraryName: "antd",
    libraryDirectory:"es",
    style: true
  }),
  addLessLoader({
    modifyVars: { '@primary-color': '#1DA57A' }, 
    javascriptEnabled: true,
  })
)